-
Couldn't load subscription status.
- Fork 2.4k
Firefox 135 adds Idempotency-Key HTTP header behind pref
#28219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
You'll need to suggest this spec in the browser-specs repo. |
Idempotency-Key HTTP header behind pref
|
Thanks @caugner - I've accepted this as non-standard and will add the spec back if w3c/browser-specs#2199 gets approved. |
be64288 to
2887e0c
Compare
|
@caugner Don't know when BCD "finds" spec updates, but the spec for this was accepted in w3c/browser-specs#2199 - and I have added the spec-url and set this back to standard. Ready for your review. |
Should be fine with #28306 now. |
|
Thanks very much @caugner |
FF135 added support for the
Idempotency-Keyheader in https://bugzilla.mozilla.org/show_bug.cgi?id=1830022 behind the preferencenetwork.http.idempotencyKey.enabled.There was an attempt to ship in 145 in https://bugzilla.mozilla.org/show_bug.cgi?id=1991641 but this has been withdrawn
This has a spec https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/ but adding it results in an error.
The key is sent in requests to indicate that a POST/PATCH is a particular unique command. If the server gets the same request with the same key it ignores it.
As specified the server defines the requirements for the key, which would be expected therefore to be unknown to the browser, and set by Javascript.
As such you wouldn't expect a browser integration, and hence no BCD entry.
However FF automatically attaches a key if one is not attached. This is non standard. But it does mean that the browser does something, so there is an integration and compatibility story.
Related docs work can be tracked in mdn/content#41497